3.3.56 \(\int \frac {\cosh (c+d x)}{a+i a \sinh (c+d x)} \, dx\) [256]

Optimal. Leaf size=23 \[ -\frac {i \log (i-\sinh (c+d x))}{a d} \]

[Out]

-I*ln(I-sinh(d*x+c))/a/d

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {2746, 31} \begin {gather*} -\frac {i \log (-\sinh (c+d x)+i)}{a d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Cosh[c + d*x]/(a + I*a*Sinh[c + d*x]),x]

[Out]

((-I)*Log[I - Sinh[c + d*x]])/(a*d)

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 2746

Int[cos[(e_.) + (f_.)*(x_)]^(p_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.), x_Symbol] :> Dist[1/(b^p*f), S
ubst[Int[(a + x)^(m + (p - 1)/2)*(a - x)^((p - 1)/2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x]
&& IntegerQ[(p - 1)/2] && EqQ[a^2 - b^2, 0] && (GeQ[p, -1] ||  !IntegerQ[m + 1/2])

Rubi steps

\begin {align*} \int \frac {\cosh (c+d x)}{a+i a \sinh (c+d x)} \, dx &=-\frac {i \text {Subst}\left (\int \frac {1}{a+x} \, dx,x,i a \sinh (c+d x)\right )}{a d}\\ &=-\frac {i \log (i-\sinh (c+d x))}{a d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 23, normalized size = 1.00 \begin {gather*} -\frac {i \log (i-\sinh (c+d x))}{a d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Cosh[c + d*x]/(a + I*a*Sinh[c + d*x]),x]

[Out]

((-I)*Log[I - Sinh[c + d*x]])/(a*d)

________________________________________________________________________________________

Maple [A]
time = 0.72, size = 23, normalized size = 1.00

method result size
derivativedivides \(-\frac {i \ln \left (a +i a \sinh \left (d x +c \right )\right )}{d a}\) \(23\)
default \(-\frac {i \ln \left (a +i a \sinh \left (d x +c \right )\right )}{d a}\) \(23\)
risch \(\frac {i x}{a}+\frac {2 i c}{a d}-\frac {2 i \ln \left ({\mathrm e}^{d x +c}-i\right )}{a d}\) \(38\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(d*x+c)/(a+I*a*sinh(d*x+c)),x,method=_RETURNVERBOSE)

[Out]

-I/d*ln(a+I*a*sinh(d*x+c))/a

________________________________________________________________________________________

Maxima [A]
time = 0.26, size = 20, normalized size = 0.87 \begin {gather*} -\frac {i \, \log \left (i \, a \sinh \left (d x + c\right ) + a\right )}{a d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(d*x+c)/(a+I*a*sinh(d*x+c)),x, algorithm="maxima")

[Out]

-I*log(I*a*sinh(d*x + c) + a)/(a*d)

________________________________________________________________________________________

Fricas [A]
time = 0.34, size = 23, normalized size = 1.00 \begin {gather*} \frac {i \, d x - 2 i \, \log \left (e^{\left (d x + c\right )} - i\right )}{a d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(d*x+c)/(a+I*a*sinh(d*x+c)),x, algorithm="fricas")

[Out]

(I*d*x - 2*I*log(e^(d*x + c) - I))/(a*d)

________________________________________________________________________________________

Sympy [A]
time = 0.10, size = 22, normalized size = 0.96 \begin {gather*} \frac {i x}{a} - \frac {2 i \log {\left (e^{d x} - i e^{- c} \right )}}{a d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(d*x+c)/(a+I*a*sinh(d*x+c)),x)

[Out]

I*x/a - 2*I*log(exp(d*x) - I*exp(-c))/(a*d)

________________________________________________________________________________________

Giac [A]
time = 0.50, size = 32, normalized size = 1.39 \begin {gather*} -\frac {-\frac {i \, {\left (d x + c\right )}}{a} + \frac {2 i \, \log \left (i \, e^{\left (d x + c\right )} + 1\right )}{a}}{d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cosh(d*x+c)/(a+I*a*sinh(d*x+c)),x, algorithm="giac")

[Out]

-(-I*(d*x + c)/a + 2*I*log(I*e^(d*x + c) + 1)/a)/d

________________________________________________________________________________________

Mupad [B]
time = 0.24, size = 19, normalized size = 0.83 \begin {gather*} -\frac {\ln \left (\mathrm {sinh}\left (c+d\,x\right )-\mathrm {i}\right )\,1{}\mathrm {i}}{a\,d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cosh(c + d*x)/(a + a*sinh(c + d*x)*1i),x)

[Out]

-(log(sinh(c + d*x) - 1i)*1i)/(a*d)

________________________________________________________________________________________